home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Script.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  50.0 KB  |  1,275 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Script.a
  3. ;
  4. ;    Contains:    Script Manager interfaces
  5. ;
  6. ;    Version:    Technology:    System 7.5+
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1986-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__SCRIPT__') = 'UNDEFINED' THEN
  19. __SCRIPT__ SET 1
  20.  
  21.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  22.     include 'MacTypes.a'
  23.     ENDIF
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27.     IF &TYPE('__INTLRESOURCES__') = 'UNDEFINED' THEN
  28.     include 'IntlResources.a'
  29.     ENDIF
  30.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  31.     include 'Events.a'
  32.     ENDIF
  33.  
  34. ;  Meta script codes:
  35.  
  36. smSystemScript                    EQU        -1                    ; designates system script.
  37. smCurrentScript                    EQU        -2                    ; designates current font script.
  38. smAllScripts                    EQU        -3                    ; designates any script
  39.  
  40. ;   Script codes:
  41. ;   These specify a Mac OS encoding that is related to a FOND ID range.
  42. ;   Some of the encodings have several variants (e.g. for different localized systems)
  43. ;    which all share the same script code.
  44. ;   Not all of these script codes are currently supported by Apple software.
  45. ;   Notes:
  46. ;   - Script code 0 (smRoman) is also used (instead of smGreek) for the Greek encoding
  47. ;     in the Greek localized system.
  48. ;   - Script code 28 (smEthiopic) is also used for the Inuit encoding in the Inuktitut
  49. ;     system.
  50.  
  51.  
  52.  
  53. smRoman                            EQU        0
  54. smJapanese                        EQU        1
  55. smTradChinese                    EQU        2                    ; Traditional Chinese
  56. smKorean                        EQU        3
  57. smArabic                        EQU        4
  58. smHebrew                        EQU        5
  59. smGreek                            EQU        6
  60. smCyrillic                        EQU        7
  61. smRSymbol                        EQU        8                    ; Right-left symbol
  62. smDevanagari                    EQU        9
  63. smGurmukhi                        EQU        10
  64. smGujarati                        EQU        11
  65. smOriya                            EQU        12
  66. smBengali                        EQU        13
  67. smTamil                            EQU        14
  68. smTelugu                        EQU        15
  69. smKannada                        EQU        16                    ; Kannada/Kanarese
  70. smMalayalam                        EQU        17
  71. smSinhalese                        EQU        18
  72. smBurmese                        EQU        19
  73. smKhmer                            EQU        20                    ; Khmer/Cambodian
  74. smThai                            EQU        21
  75. smLao                            EQU        22
  76. smGeorgian                        EQU        23
  77. smArmenian                        EQU        24
  78. smSimpChinese                    EQU        25                    ; Simplified Chinese
  79. smTibetan                        EQU        26
  80. smMongolian                        EQU        27
  81. smEthiopic                        EQU        28
  82. smGeez                            EQU        28                    ; Synonym for smEthiopic
  83. smCentralEuroRoman                EQU        29                    ; For Czech, Slovak, Polish, Hungarian, Baltic langs
  84. smVietnamese                    EQU        30
  85. smExtArabic                        EQU        31                    ; extended Arabic
  86. smUninterp                        EQU        32                    ; uninterpreted symbols, e.g. palette symbols
  87. ;  Obsolete script code names (kept for backward compatibility):
  88.  
  89. smChinese                        EQU        2                    ; (Use smTradChinese or smSimpChinese)
  90. smRussian                        EQU        7                    ; Use smCyrillic
  91.                                                             ; smMaldivian = 25: deleted, no code for Maldivian
  92. smLaotian                        EQU        22                    ; Use smLao                                                            
  93. smAmharic                        EQU        28                    ; Use smEthiopic or smGeez
  94. smSlavic                        EQU        29                    ; Use smCentralEuroRoman
  95. smEastEurRoman                    EQU        29                    ; Use smCentralEuroRoman
  96. smSindhi                        EQU        31                    ; Use smExtArabic
  97. smKlingon                        EQU        32
  98.  
  99. ;   Language codes:
  100. ;   These specify a language implemented using a particular Mac OS encoding.
  101. ;   Not all of these language codes are currently supported by Apple software.
  102.  
  103.  
  104.  
  105. langEnglish                        EQU        0                    ; smRoman script
  106. langFrench                        EQU        1                    ; smRoman script
  107. langGerman                        EQU        2                    ; smRoman script
  108. langItalian                        EQU        3                    ; smRoman script
  109. langDutch                        EQU        4                    ; smRoman script
  110. langSwedish                        EQU        5                    ; smRoman script
  111. langSpanish                        EQU        6                    ; smRoman script
  112. langDanish                        EQU        7                    ; smRoman script
  113. langPortuguese                    EQU        8                    ; smRoman script
  114. langNorwegian                    EQU        9                    ; smRoman script
  115. langHebrew                        EQU        10                    ; smHebrew script
  116. langJapanese                    EQU        11                    ; smJapanese script
  117. langArabic                        EQU        12                    ; smArabic script
  118. langFinnish                        EQU        13                    ; smRoman script
  119. langGreek                        EQU        14                    ; Greek script using smRoman script code
  120. langIcelandic                    EQU        15                    ; modified smRoman/Icelandic script
  121. langMaltese                        EQU        16                    ; Roman script
  122. langTurkish                        EQU        17                    ; modified smRoman/Turkish script
  123. langCroatian                    EQU        18                    ; modified smRoman/Croatian script
  124. langTradChinese                    EQU        19                    ; Chinese (Mandarin) in traditional characters
  125. langUrdu                        EQU        20                    ; smArabic script
  126. langHindi                        EQU        21                    ; smDevanagari script
  127. langThai                        EQU        22                    ; smThai script
  128. langKorean                        EQU        23                    ; smKorean script
  129.  
  130. langLithuanian                    EQU        24                    ; smCentralEuroRoman script
  131. langPolish                        EQU        25                    ; smCentralEuroRoman script
  132. langHungarian                    EQU        26                    ; smCentralEuroRoman script
  133. langEstonian                    EQU        27                    ; smCentralEuroRoman script
  134. langLatvian                        EQU        28                    ; smCentralEuroRoman script
  135. langSami                        EQU        29                    ; language of the Sami people of N. Scandinavia                        
  136. langFaroese                        EQU        30                    ; modified smRoman/Icelandic script                                    
  137. langFarsi                        EQU        31                    ; modified smArabic/Farsi script
  138. langPersian                        EQU        31                    ; Synonym for langFarsi
  139. langRussian                        EQU        32                    ; smCyrillic script
  140. langSimpChinese                    EQU        33                    ; Chinese (Mandarin) in simplified characters
  141. langFlemish                        EQU        34                    ; smRoman script
  142. langIrishGaelic                    EQU        35                    ; smRoman or modified smRoman/Celtic script (without dot above)        
  143. langAlbanian                    EQU        36                    ; smRoman script
  144. langRomanian                    EQU        37                    ; modified smRoman/Romanian script
  145. langCzech                        EQU        38                    ; smCentralEuroRoman script
  146. langSlovak                        EQU        39                    ; smCentralEuroRoman script
  147. langSlovenian                    EQU        40                    ; modified smRoman/Croatian script
  148. langYiddish                        EQU        41                    ; smHebrew script
  149. langSerbian                        EQU        42                    ; smCyrillic script
  150. langMacedonian                    EQU        43                    ; smCyrillic script
  151. langBulgarian                    EQU        44                    ; smCyrillic script
  152. langUkrainian                    EQU        45                    ; modified smCyrillic/Ukrainian script
  153. langByelorussian                EQU        46                    ; smCyrillic script
  154. langBelorussian                    EQU        46                    ; Synonym for langByelorussian                                            
  155.  
  156. langUzbek                        EQU        47                    ; Cyrillic script
  157. langKazakh                        EQU        48                    ; Cyrillic script
  158. langAzerbaijani                    EQU        49                    ; Azerbaijani in Cyrillic script
  159. langAzerbaijanAr                EQU        50                    ; Azerbaijani in Arabic script
  160. langArmenian                    EQU        51                    ; smArmenian script
  161. langGeorgian                    EQU        52                    ; smGeorgian script
  162. langMoldavian                    EQU        53                    ; smCyrillic script
  163. langKirghiz                        EQU        54                    ; Cyrillic script
  164. langTajiki                        EQU        55                    ; Cyrillic script
  165. langTurkmen                        EQU        56                    ; Cyrillic script
  166. langMongolian                    EQU        57                    ; Mongolian in smMongolian script
  167. langMongolianCyr                EQU        58                    ; Mongolian in Cyrillic script
  168. langPashto                        EQU        59                    ; Arabic script
  169. langKurdish                        EQU        60                    ; smArabic script
  170. langKashmiri                    EQU        61                    ; Arabic script
  171. langSindhi                        EQU        62                    ; Arabic script
  172. langTibetan                        EQU        63                    ; smTibetan script
  173. langNepali                        EQU        64                    ; smDevanagari script
  174. langSanskrit                    EQU        65                    ; smDevanagari script
  175. langMarathi                        EQU        66                    ; smDevanagari script
  176. langBengali                        EQU        67                    ; smBengali script
  177. langAssamese                    EQU        68                    ; smBengali script
  178. langGujarati                    EQU        69                    ; smGujarati script
  179. langPunjabi                        EQU        70                    ; smGurmukhi script
  180.  
  181. langOriya                        EQU        71                    ; smOriya script
  182. langMalayalam                    EQU        72                    ; smMalayalam script
  183. langKannada                        EQU        73                    ; smKannada script
  184. langTamil                        EQU        74                    ; smTamil script
  185. langTelugu                        EQU        75                    ; smTelugu script
  186. langSinhalese                    EQU        76                    ; smSinhalese script
  187. langBurmese                        EQU        77                    ; smBurmese script
  188. langKhmer                        EQU        78                    ; smKhmer script
  189. langLao                            EQU        79                    ; smLao script
  190. langVietnamese                    EQU        80                    ; smVietnamese script
  191. langIndonesian                    EQU        81                    ; smRoman script
  192. langTagalog                        EQU        82                    ; Roman script
  193. langMalayRoman                    EQU        83                    ; Malay in smRoman script
  194. langMalayArabic                    EQU        84                    ; Malay in Arabic script
  195. langAmharic                        EQU        85                    ; smEthiopic script
  196. langTigrinya                    EQU        86                    ; smEthiopic script
  197. langOromo                        EQU        87                    ; smEthiopic script
  198. langSomali                        EQU        88                    ; smRoman script
  199. langSwahili                        EQU        89                    ; smRoman script
  200. langKinyarwanda                    EQU        90                    ; smRoman script
  201. langRuanda                        EQU        90                    ; synonym for langKinyarwanda
  202. langRundi                        EQU        91                    ; smRoman script
  203. langNyanja                        EQU        92                    ; smRoman script
  204. langChewa                        EQU        92                    ; synonym for langNyanja
  205. langMalagasy                    EQU        93                    ; smRoman script
  206. langEsperanto                    EQU        94                    ; Roman script
  207.  
  208. langWelsh                        EQU        128                    ; modified smRoman/Celtic script
  209. langBasque                        EQU        129                    ; smRoman script
  210. langCatalan                        EQU        130                    ; smRoman script
  211. langLatin                        EQU        131                    ; smRoman script
  212. langQuechua                        EQU        132                    ; smRoman script
  213. langGuarani                        EQU        133                    ; smRoman script
  214. langAymara                        EQU        134                    ; smRoman script
  215. langTatar                        EQU        135                    ; Cyrillic script
  216. langUighur                        EQU        136                    ; Arabic script
  217. langDzongkha                    EQU        137                    ; (lang of Bhutan) smTibetan script
  218. langJavaneseRom                    EQU        138                    ; Javanese in smRoman script
  219. langSundaneseRom                EQU        139                    ; Sundanese in smRoman script
  220. langGalician                    EQU        140                    ; smRoman script
  221. langAfrikaans                    EQU        141                    ; smRoman script                                                        
  222.  
  223. langBreton                        EQU        142                    ; smRoman or modified smRoman/Celtic script                            
  224. langInuktitut                    EQU        143                    ; Inuit script using smEthiopic script code                            
  225. langScottishGaelic                EQU        144                    ; smRoman or modified smRoman/Celtic script                            
  226. langManxGaelic                    EQU        145                    ; smRoman or modified smRoman/Celtic script                            
  227. langIrishGaelicScript            EQU        146                    ; modified smRoman/Gaelic script (using dot above)                        
  228. langTongan                        EQU        147                    ; smRoman script                                                        
  229. langGreekPoly                    EQU        148                    ; smGreek script                                                        
  230.  
  231. langUnspecified                    EQU        32767                ; Special code for use in resources (such as 'itlm')                    
  232.  
  233. ;   Obsolete language code names (kept for backward compatibility):
  234. ;   Misspelled, ambiguous, misleading, considered pejorative, archaic, etc.
  235.  
  236.  
  237.  
  238. langPortugese                    EQU        8                    ; Use langPortuguese
  239. langMalta                        EQU        16                    ; Use langMaltese
  240. langYugoslavian                    EQU        18                    ; (use langCroatian, langSerbian, etc.)
  241. langChinese                        EQU        19                    ; (use langTradChinese or langSimpChinese)
  242. langLettish                        EQU        28                    ; Use langLatvian                                                        
  243. langLapponian                    EQU        29                    ; Use langSami
  244. langLappish                        EQU        29                    ; Use langSami
  245. langSaamisk                        EQU        29                    ; Use langSami                                                            
  246. langFaeroese                    EQU        30                    ; Use langFaroese                                                        
  247. langIrish                        EQU        35                    ; Use langIrishGaelic                                                    
  248. langGalla                        EQU        87                    ; Use langOromo                                                        
  249. langAfricaans                    EQU        141                    ; Use langAfrikaans                                                    
  250.  
  251. ;   Region codes:
  252. ;   These typically specify a combination of a language code and a particular region.
  253. ;   Some of these numeric values are reserved just for extra resource IDs associated
  254. ;   with certain regions; these are not actual region codes, and are noted in the comments.
  255. ;   Not all of the region codes are currently supported by Apple software.
  256. ;   When relevant, the following list also provides:
  257. ;   - The Apple part number (P/N) code for software localized for the specified region.
  258. ;   - The two-letter ISO language and country codes (from ISO 639 and ISO 3166). The
  259. ;     language code (lowercase) is first, then '_', then the country code (uppercase).
  260.  
  261.  
  262.  
  263.  
  264.                                                             ; P/N    ISO    codes    comments
  265. verUS                            EQU        0                    ;        en_US
  266. verFrance                        EQU        1                    ; F    fr_FR
  267. verBritain                        EQU        2                    ; B    en_GB
  268. verGermany                        EQU        3                    ; D    de_DE
  269. verItaly                        EQU        4                    ; T    it_IT
  270. verNetherlands                    EQU        5                    ; N    nl_NL
  271. verFlemish                        EQU        6                    ; FN    nl_BE        Flemish (Dutch) for Belgium                            
  272. verSweden                        EQU        7                    ; S    sv_SE
  273. verSpain                        EQU        8                    ; E    es_ES        Spanish for Spain
  274. verDenmark                        EQU        9                    ; DK    da_DK
  275. verPortugal                        EQU        10                    ; PO    pt_PT        Portuguese for Portugal
  276. verFrCanada                        EQU        11                    ; C    fr_CA        French for Canada
  277. verNorway                        EQU        12                    ; H    no_NO        Bokmål
  278. verIsrael                        EQU        13                    ; HB    iw_IL        Hebrew
  279. verJapan                        EQU        14                    ; J    ja_JP
  280. verAustralia                    EQU        15                    ; X    en_AU        English for Australia
  281. verArabic                        EQU        16                    ; AB    ar            Arabic for N Africa, Arabian peninsula, Levant
  282. verFinland                        EQU        17                    ; K    fi_FI
  283. verFrSwiss                        EQU        18                    ; SF    fr_CH        French Swiss
  284. verGrSwiss                        EQU        19                    ; SD    de_CH        German Swiss
  285. verGreece                        EQU        20                    ; GR    el_GR        Monotonic Greek (modern)
  286. verIceland                        EQU        21                    ; IS    is_IS
  287. verMalta                        EQU        22                    ; MA    mt_MT
  288. verCyprus                        EQU        23                    ; CY      _CY        Greek or Turkish language? Checking...
  289. verTurkey                        EQU        24                    ; TU    tr_TR
  290. verYugoCroatian                    EQU        25                    ; YU                Croatian for Yugoslavia; now use verCroatia (68)
  291.  
  292. verNetherlandsComma                EQU        26                    ;                    ID for KCHR resource - Dutch
  293. verBelgiumLuxPoint                EQU        27                    ;                    ID for KCHR resource - Belgium
  294. verCanadaComma                    EQU        28                    ;                    ID for KCHR resource - Canadian ISO
  295. verCanadaPoint                    EQU        29                    ;                    ID for KCHR resource - Canadian; now unused
  296. vervariantPortugal                EQU        30                    ;                    ID for resource; now unused
  297. vervariantNorway                EQU        31                    ;                    ID for resource; now unused
  298. vervariantDenmark                EQU        32                    ;                    ID for KCHR resource - Danish Mac Plus
  299.  
  300. verIndiaHindi                    EQU        33                    ;        hi_IN        Hindi for India
  301. verPakistanUrdu                    EQU        34                    ; UR    ur_PK        Urdu for Pakistan                                    
  302. verTurkishModified                EQU        35
  303. verItalianSwiss                    EQU        36                    ; ST    it_CH        Italian Swiss
  304. verInternational                EQU        37                    ; Z    en            English for international use                        
  305.                                                             ;                    38 is unassigned
  306. verRomania                        EQU        39                    ; RO    ro_RO
  307. verGreecePoly                    EQU        40                    ;                    Polytonic Greek (classical)                            
  308. verLithuania                    EQU        41                    ; LT    lt_LT
  309. verPoland                        EQU        42                    ; PL    pl_PL
  310. verHungary                        EQU        43                    ; MG    hu_HU
  311. verEstonia                        EQU        44                    ; EE    et_EE
  312. verLatvia                        EQU        45                    ; LV    lv_LV
  313. verSami                            EQU        46                    ;        se                                                                
  314. verFaroeIsl                        EQU        47                    ; FA    fo_FO                                                            
  315. verIran                            EQU        48                    ; PS    fa_IR        Persian/Farsi
  316. verRussia                        EQU        49                    ; RS    ru_RU        Russian
  317. verIreland                        EQU        50                    ; GA    ga_IE        Irish Gaelic for Ireland (without dot above)        
  318. verKorea                        EQU        51                    ; KH    ko_KR
  319. verChina                        EQU        52                    ; CH    zh_CN        Simplified Chinese
  320. verTaiwan                        EQU        53                    ; TA    zh_TW        Traditional Chinese
  321. verThailand                        EQU        54                    ; TH    th_TH
  322. verScriptGeneric                EQU        55                    ; SS                Generic script system (no language or script)        
  323. verCzech                        EQU        56                    ; CZ    cs_CZ
  324. verSlovak                        EQU        57                    ; SL    sk_SK
  325. verFarEastGeneric                EQU        58                    ; FE                Generic Far East system (no language or script)        
  326. verMagyar                        EQU        59                    ;                    Unused; see verHungary
  327. verBengali                        EQU        60                    ;        bn            Bangladesh or India
  328. verByeloRussian                    EQU        61                    ; BY    be_BY
  329.  
  330. verUkraine                        EQU        62                    ; UA    uk_UA
  331.                                                             ;                    63 is unassigned
  332. verGreeceAlt                    EQU        64                    ;                    unused                                                
  333. verSerbian                        EQU        65                    ; SR    sr_YU, sh_YU                                                    
  334. verSlovenian                    EQU        66                    ; SV    sl_SI                                                            
  335. verMacedonian                    EQU        67                    ; MD    mk_MK                                                            
  336. verCroatia                        EQU        68                    ; CR    hr_HR, sh_HR
  337.                                                             ;                    69 is unassigned
  338.                                                             ;                    70 is unassigned
  339. verBrazil                        EQU        71                    ; BR    pt_BR        Portuguese for Brazil
  340. verBulgaria                        EQU        72                    ; BG    bg_BG
  341. verCatalonia                    EQU        73                    ; CA    ca_ES        Catalan for Spain
  342. verMultilingual                    EQU        74                    ; ZM                (no language or script)
  343. verScottishGaelic                EQU        75                    ; GD    gd
  344. verManxGaelic                    EQU        76                    ; GV    gv            Isle of Man
  345. verBreton                        EQU        77                    ; BZ    br
  346. verNunavut                        EQU        78                    ; IU    iu_CA        Inuktitut for Canada
  347. verWelsh                        EQU        79                    ; CU    cy
  348.                                                             ;                    80 is ID for KCHR resource - Canadian CSA
  349. verIrishGaelicScript            EQU        81                    ; GS    ga_IE        Irish Gaelic for Ireland (using dot above)
  350. verEngCanada                    EQU        82                    ; V    en_CA        English for Canada
  351. verBhutan                        EQU        83                    ; BH    dz_BT        Dzongkha for Bhutan
  352. verArmenian                        EQU        84                    ; HY    hy_AM
  353. verGeorgian                        EQU        85                    ; KR    ka_GE
  354. verSpLatinAmerica                EQU        86                    ; LA    es            Spanish for Latin America
  355.                                                             ;                    87 is ID for KCHR resource - Spanish ISO
  356. verTonga                        EQU        88                    ; TS    to_TO
  357.                                                             ;                    89 is ID for KCHR resource - Polish Modified
  358.                                                             ;                    90 is ID for KCHR resource - Catalan ISO
  359. verFrenchUniversal                EQU        91                    ;        fr            French generic
  360. verAustria                        EQU        92                    ; AU    de_AT        German for Austria
  361.                                                             ; Y                93 is unused alternate for verSpLatinAmerica
  362. verGujarati                        EQU        94                    ;        gu_IN
  363. verPunjabi                        EQU        95                    ;        pa            Pakistan or India
  364. verIndiaUrdu                    EQU        96                    ;        ur_IN        Urdu for India
  365. verVietnam                        EQU        97                    ;        vi_VN
  366.  
  367. verFrBelgium                    EQU        98                    ; BF    fr_BE        French for Belgium                                    
  368. verUzbek                        EQU        99                    ; BD    uz_UZ                                                            
  369. verSingapore                    EQU        100                    ; SG                                                                    
  370. verNynorsk                        EQU        101                    ; NY      _NO        Norwegian Nynorsk                                    
  371. verAfrikaans                    EQU        102                    ; AK    af_ZA                                                            
  372. verEsperanto                    EQU        103                    ;        eo                                                                
  373. verMarathi                        EQU        104                    ;        xx_IN                                                            
  374. verTibetan                        EQU        105                    ;        bo                                                                
  375. verNepal                        EQU        106                    ;        ne_NP                                                            
  376.  
  377. ;   Other extra resource IDs assigned in the same number space:
  378. ;    179 is ID for KCHR & itl_ resources - Cornish
  379. ;    581 is ID for KCHR resource - Irish Gaelic script alternate
  380. ;    582 is ID for KCHR resource - Ogham
  381. ;    779 is ID for KCHR resource - Welsh alternate
  382. ;   1111 is ID for KCHR resource - French numeric
  383.  
  384.  
  385.  
  386.  
  387. ;   Obsolete region code names (kept for backward compatibility):
  388. ;   Misspelled or alternate form, ambiguous, misleading, considered pejorative, archaic, etc.
  389.  
  390.  
  391.  
  392. verFrBelgiumLux                    EQU        6                    ; Incorrect; 6 is Flemish, not French, for Belgium; use verFlemish        
  393. verBelgiumLux                    EQU        6                    ; Use verFlemish
  394. verArabia                        EQU        16                    ; Use verArabic
  395. verYugoslavia                    EQU        25                    ; Use verYugoCroatian (same number, now unused), or newer verCroatia
  396. verIndia                        EQU        33                    ; Use verIndiaHindi
  397. verPakistan                        EQU        34                    ; Use verPakistanUrdu                                                    
  398. verRumania                        EQU        39                    ; Alternate for verRomania                                                
  399. verGreekAncient                    EQU        40                    ; Use verGreecePoly                                                    
  400. verLapland                        EQU        46                    ; Use verSami                                                            
  401. verFaeroeIsl                    EQU        47                    ; Use verFaroeIsl                                                        
  402. verGenericFE                    EQU        58                    ; Use verFarEastGeneric                                                
  403. verBelarus                        EQU        61                    ; Alternate for verByelorussian                                        
  404. verUkrania                        EQU        62                    ; Use verUkraine
  405. verAlternateGr                    EQU        64                    ; Use verGreeceAlt                                                        
  406. verSerbia                        EQU        65                    ; Alternate for verSerbian                                                
  407. verSlovenia                        EQU        66                    ; Alternate for verSlovenian                                            
  408. verMacedonia                    EQU        67                    ; Alternate for verMacedonian                                            
  409. verBrittany                        EQU        77                    ; Alternate for verBreton                                                
  410. verWales                        EQU        79                    ; Alternate for verWelsh                                                
  411. verArmenia                        EQU        84                    ; Alternate for verArmenian                                            
  412. verGeorgia                        EQU        85                    ; Alternate for verGeorgian                                            
  413. verAustriaGerman                EQU        92                    ; Use verAustria                                                        
  414. verTibet                        EQU        105                    ; Use verTibetan                                                        
  415.  
  416. minCountry                        EQU        0
  417. maxCountry                        EQU        106
  418.  
  419.                                                             ; Calendar Codes 
  420. calGregorian                    EQU        0
  421. calArabicCivil                    EQU        1
  422. calArabicLunar                    EQU        2
  423. calJapanese                        EQU        3
  424. calJewish                        EQU        4
  425. calCoptic                        EQU        5
  426. calPersian                        EQU        6
  427.  
  428.                                                             ; Integer Format Codes 
  429. intWestern                        EQU        0
  430. intArabic                        EQU        1
  431. intRoman                        EQU        2
  432. intJapanese                        EQU        3
  433. intEuropean                        EQU        4
  434. intOutputMask                    EQU        $8000
  435.  
  436.                                                             ; CharByte byte types 
  437. smSingleByte                    EQU        0
  438. smFirstByte                        EQU        -1
  439. smLastByte                        EQU        1
  440. smMiddleByte                    EQU        2
  441.  
  442.                                                             ; CharType field masks 
  443. smcTypeMask                        EQU        $000F
  444. smcReserved                        EQU        $00F0
  445. smcClassMask                    EQU        $0F00
  446. smcOrientationMask                EQU        $1000                ;two-byte script glyph orientation
  447. smcRightMask                    EQU        $2000
  448. smcUpperMask                    EQU        $4000
  449. smcDoubleMask                    EQU        $8000
  450.  
  451.                                                             ; Basic CharType character types 
  452. smCharPunct                        EQU        $0000
  453. smCharAscii                        EQU        $0001
  454. smCharEuro                        EQU        $0007
  455. smCharExtAscii                    EQU        $0007                ; More correct synonym for smCharEuro 
  456.                                                             ; Additional CharType character types for script systems 
  457. smCharKatakana                    EQU        $0002                ;Japanese Katakana
  458. smCharHiragana                    EQU        $0003                ;Japanese Hiragana
  459. smCharIdeographic                EQU        $0004                ;Hanzi, Kanji, Hanja
  460. smCharTwoByteGreek                EQU        $0005                ;2-byte Greek in Far East systems
  461. smCharTwoByteRussian            EQU        $0006                ;2-byte Cyrillic in Far East systems
  462. smCharBidirect                    EQU        $0008                ;Arabic/Hebrew
  463. smCharContextualLR                EQU        $0009                ;Contextual left-right: Thai, Indic scripts
  464. smCharNonContextualLR            EQU        $000A                ;Non-contextual left-right: Cyrillic, Greek
  465. smCharHangul                    EQU        $000C                ;Korean Hangul
  466. smCharJamo                        EQU        $000D                ;Korean Jamo
  467. smCharBopomofo                    EQU        $000E                ;Chinese Bopomofo
  468. smCharGanaKana                    EQU        $000F                ;Shared for Japanese Hiragana & Katakana
  469.                                                             ; old names for some of above, for backward compatibility 
  470. smCharFISKana                    EQU        $0002                ;Katakana
  471. smCharFISGana                    EQU        $0003                ;Hiragana
  472. smCharFISIdeo                    EQU        $0004                ;Hanzi, Kanji, Hanja
  473.  
  474. smCharFISGreek                    EQU        $0005                ;2-byte Greek in Far East systems
  475. smCharFISRussian                EQU        $0006                ;2-byte Cyrillic in Far East systems
  476.                                                             ; CharType classes for punctuation (smCharPunct) 
  477. smPunctNormal                    EQU        $0000
  478. smPunctNumber                    EQU        $0100
  479. smPunctSymbol                    EQU        $0200
  480. smPunctBlank                    EQU        $0300                ; Additional CharType classes for punctuation in two-byte systems 
  481. smPunctRepeat                    EQU        $0400                ; repeat marker 
  482. smPunctGraphic                    EQU        $0500                ; line graphics 
  483.                                                             ; CharType Katakana and Hiragana classes for two-byte systems 
  484. smKanaSmall                        EQU        $0100                ;small kana character
  485. smKanaHardOK                    EQU        $0200                ;can have dakuten
  486. smKanaSoftOK                    EQU        $0300                ;can have dakuten or han-dakuten
  487.                                                             ; CharType Ideographic classes for two-byte systems 
  488. smIdeographicLevel1                EQU        $0000                ;level 1 char
  489. smIdeographicLevel2                EQU        $0100                ;level 2 char
  490. smIdeographicUser                EQU        $0200                ;user char
  491.                                                             ; old names for above, for backward compatibility 
  492. smFISClassLvl1                    EQU        $0000                ;level 1 char
  493. smFISClassLvl2                    EQU        $0100                ;level 2 char
  494. smFISClassUser                    EQU        $0200                ;user char
  495.                                                             ; CharType Jamo classes for Korean systems 
  496. smJamoJaeum                        EQU        $0000                ;simple consonant char
  497. smJamoBogJaeum                    EQU        $0100                ;complex consonant char
  498. smJamoMoeum                        EQU        $0200                ;simple vowel char
  499. smJamoBogMoeum                    EQU        $0300                ;complex vowel char
  500.  
  501.                                                             ; CharType glyph orientation for two-byte systems 
  502. smCharHorizontal                EQU        $0000                ; horizontal character form, or for both 
  503. smCharVertical                    EQU        $1000                ; vertical character form 
  504.                                                             ; CharType directions 
  505. smCharLeft                        EQU        $0000
  506. smCharRight                        EQU        $2000                ; CharType case modifers 
  507. smCharLower                        EQU        $0000
  508. smCharUpper                        EQU        $4000                ; CharType character size modifiers (1 or multiple bytes). 
  509. smChar1byte                        EQU        $0000
  510. smChar2byte                        EQU        $8000
  511.  
  512.                                                             ; TransliterateText target types for Roman 
  513. smTransAscii                    EQU        0                    ;convert to ASCII
  514. smTransNative                    EQU        1                    ;convert to font script
  515. smTransCase                        EQU        $FE                    ;convert case for all text
  516. smTransSystem                    EQU        $FF                    ;convert to system script
  517.                                                             ; TransliterateText target types for two-byte scripts 
  518. smTransAscii1                    EQU        2                    ;1-byte Roman
  519. smTransAscii2                    EQU        3                    ;2-byte Roman
  520. smTransKana1                    EQU        4                    ;1-byte Japanese Katakana
  521. smTransKana2                    EQU        5                    ;2-byte Japanese Katakana
  522.  
  523. smTransGana2                    EQU        7                    ;2-byte Japanese Hiragana (no 1-byte Hiragana)
  524. smTransHangul2                    EQU        8                    ;2-byte Korean Hangul
  525. smTransJamo2                    EQU        9                    ;2-byte Korean Jamo
  526. smTransBopomofo2                EQU        10                    ;2-byte Chinese Bopomofo
  527.                                                             ; TransliterateText target modifiers 
  528. smTransLower                    EQU        $4000                ;target becomes lowercase
  529. smTransUpper                    EQU        $8000                ;target becomes uppercase
  530.                                                             ; TransliterateText resource format numbers 
  531. smTransRuleBaseFormat            EQU        1                    ;Rule based trsl resource format 
  532. smTransHangulFormat                EQU        2                    ;Table based Hangul trsl resource format
  533.                                                             ; TransliterateText property flags 
  534. smTransPreDoubleByting            EQU        1                    ;Convert all text to double byte before transliteration
  535. smTransPreLowerCasing            EQU        2                    ;Convert all text to lower case before transliteration
  536.  
  537.                                                             ; TransliterateText source mask - general 
  538. smMaskAll                        EQU        $FFFFFFFF            ;Convert all text
  539.                                                             ; TransliterateText source masks 
  540. smMaskAscii                        EQU        $00000001            ;2^smTransAscii
  541. smMaskNative                    EQU        $00000002            ;2^smTransNative
  542.                                                             ; TransliterateText source masks for two-byte scripts 
  543. smMaskAscii1                    EQU        $00000004            ;2^smTransAscii1
  544. smMaskAscii2                    EQU        $00000008            ;2^smTransAscii2
  545. smMaskKana1                        EQU        $00000010            ;2^smTransKana1
  546. smMaskKana2                        EQU        $00000020            ;2^smTransKana2
  547. smMaskGana2                        EQU        $00000080            ;2^smTransGana2
  548. smMaskHangul2                    EQU        $00000100            ;2^smTransHangul2
  549. smMaskJamo2                        EQU        $00000200            ;2^smTransJamo2
  550. smMaskBopomofo2                    EQU        $00000400            ;2^smTransBopomofo2
  551.  
  552.                                                             ; Result values from GetScriptManagerVariable and SetScriptManagerVariable calls. 
  553. smNotInstalled                    EQU        0                    ;routine not available in script
  554. smBadVerb                        EQU        -1                    ;Bad verb passed to a routine
  555. smBadScript                        EQU        -2                    ;Bad script code passed to a routine
  556.  
  557.                                                             ; Values for script redraw flag. 
  558. smRedrawChar                    EQU        0                    ;Redraw character only
  559. smRedrawWord                    EQU        1                    ;Redraw entire word (2-byte systems)
  560. smRedrawLine                    EQU        -1                    ;Redraw entire line (bidirectional systems)
  561.  
  562.                                                             ; GetScriptManagerVariable and SetScriptManagerVariable verbs 
  563. smVersion                        EQU        0                    ;Script Manager version number
  564. smMunged                        EQU        2                    ;Globals change count
  565. smEnabled                        EQU        4                    ;Count of enabled scripts, incl Roman
  566. smBidirect                        EQU        6                    ;At least one bidirectional script
  567. smFontForce                        EQU        8                    ;Force font flag
  568. smIntlForce                        EQU        10                    ;Force intl flag
  569. smForced                        EQU        12                    ;Script was forced to system script
  570. smDefault                        EQU        14                    ;Script was defaulted to Roman script
  571. smPrint                            EQU        16                    ;Printer action routine
  572. smSysScript                        EQU        18                    ;System script
  573. smLastScript                    EQU        20                    ;Last keyboard script
  574. smKeyScript                        EQU        22                    ;Keyboard script
  575. smSysRef                        EQU        24                    ;System folder refNum
  576. smKeyCache                        EQU        26                    ;obsolete
  577. smKeySwap                        EQU        28                    ;Swapping table handle
  578. smGenFlags                        EQU        30                    ;General flags long
  579. smOverride                        EQU        32                    ;Script override flags
  580. smCharPortion                    EQU        34                    ;Ch vs SpExtra proportion
  581.                                                             ; New for System 7.0: 
  582. smDoubleByte                    EQU        36                    ;Flag for double-byte script installed
  583. smKCHRCache                        EQU        38                    ;Returns pointer to KCHR cache
  584. smRegionCode                    EQU        40                    ;Returns current region code (verXxx)
  585. smKeyDisableState                EQU        42                    ;Returns current keyboard disable state
  586.  
  587.                                                             ; GetScriptVariable and SetScriptVariable verbs. 
  588.                                                             ; Note: Verbs private to script systems are negative, while 
  589.                                                             ; those general across script systems are non-negative. 
  590. smScriptVersion                    EQU        0                    ;Script software version
  591. smScriptMunged                    EQU        2                    ;Script entry changed count
  592. smScriptEnabled                    EQU        4                    ;Script enabled flag
  593. smScriptRight                    EQU        6                    ;Right to left flag
  594. smScriptJust                    EQU        8                    ;Justification flag
  595. smScriptRedraw                    EQU        10                    ;Word redraw flag
  596. smScriptSysFond                    EQU        12                    ;Preferred system font
  597. smScriptAppFond                    EQU        14                    ;Preferred Application font
  598. smScriptBundle                    EQU        16                    ;Beginning of itlb verbs
  599. smScriptNumber                    EQU        16                    ;Script itl0 id
  600. smScriptDate                    EQU        18                    ;Script itl1 id
  601. smScriptSort                    EQU        20                    ;Script itl2 id
  602. smScriptFlags                    EQU        22                    ;flags word
  603. smScriptToken                    EQU        24                    ;Script itl4 id
  604. smScriptEncoding                EQU        26                    ;id of optional itl5, if present
  605. smScriptLang                    EQU        28                    ;Current language for script
  606.  
  607. smScriptNumDate                    EQU        30                    ;Script Number/Date formats.
  608. smScriptKeys                    EQU        32                    ;Script KCHR id
  609. smScriptIcon                    EQU        34                    ;ID # of SICN or kcs#/kcs4/kcs8 suite
  610. smScriptPrint                    EQU        36                    ;Script printer action routine
  611. smScriptTrap                    EQU        38                    ;Trap entry pointer
  612. smScriptCreator                    EQU        40                    ;Script file creator
  613. smScriptFile                    EQU        42                    ;Script file name
  614. smScriptName                    EQU        44                    ;Script name
  615.                                                             ; There is a hole here for old Kanji private verbs 46-76 
  616.                                                             ; New for System 7.0: 
  617. smScriptMonoFondSize            EQU        78                    ;default monospace FOND (hi) & size (lo)
  618. smScriptPrefFondSize            EQU        80                    ;preferred FOND (hi) & size (lo)
  619. smScriptSmallFondSize            EQU        82                    ;default small FOND (hi) & size (lo)
  620. smScriptSysFondSize                EQU        84                    ;default system FOND (hi) & size (lo)
  621. smScriptAppFondSize                EQU        86                    ;default app FOND (hi) & size (lo)
  622. smScriptHelpFondSize            EQU        88                    ;default Help Mgr FOND (hi) & size (lo)
  623. smScriptValidStyles                EQU        90                    ;mask of valid styles for script
  624. smScriptAliasStyle                EQU        92                    ;style (set) to use for aliases
  625. ;  special negative verbs for Get/SetScriptVariable that were associated with WorldScriptI 
  626. ;  move them here to be public 
  627.  
  628.                                                             ; WorldScript private verbs 
  629. smLayoutCache                    EQU        -309                ; HiWrd(param) is # entries, LoWrd is max input length
  630. smOldVerbSupport                EQU        -311                ; param is added to old verbs to map to WSI verb
  631. smSetKashidas                    EQU        -291                ; param is ON or OFF, old verb = -36
  632. smSetKashProp                    EQU        -287                ; param is kashida proportion, old verb = -32
  633. smScriptSysBase                    EQU        -281                ; param is associated font to use w/ system font (old verb = -26)
  634. smScriptAppBase                    EQU        -283                ; param is associated font to use w/ app font (old verb = -28)
  635. smScriptFntBase                    EQU        -285                ; param is associated font to use w/ all other fonts (old verb = -30)
  636. smScriptLigatures                EQU        -263                ; old verb = -8
  637. smScriptNumbers                    EQU        -267                ; old verb = -12
  638.  
  639.                                                             ; Special script code values for International Utilities 
  640. iuSystemScript                    EQU        -1                    ; <obsolete>  system script 
  641. iuCurrentScript                    EQU        -2                    ; <obsolete>  current script (for font of grafPort) 
  642.  
  643.                                                             ; Negative verbs for KeyScript 
  644. smKeyNextScript                    EQU        -1                    ; Switch to next available script 
  645. smKeySysScript                    EQU        -2                    ; Switch to the system script 
  646. smKeySwapScript                    EQU        -3                    ; Switch to previously-used script 
  647.                                                             ; New for System 7.0: 
  648. smKeyNextKybd                    EQU        -4                    ; Switch to next keyboard in current keyscript 
  649. smKeySwapKybd                    EQU        -5                    ; Switch to previously-used keyboard in current keyscript 
  650. smKeyDisableKybds                EQU        -6                    ; Disable keyboards not in system or Roman script 
  651. smKeyEnableKybds                EQU        -7                    ; Re-enable keyboards for all enabled scripts 
  652. smKeyToggleInline                EQU        -8                    ; Toggle inline input for current keyscript 
  653. smKeyToggleDirection            EQU        -9                    ; Toggle default line direction (TESysJust) 
  654. smKeyNextInputMethod            EQU        -10                    ; Switch to next input method in current keyscript 
  655. smKeySwapInputMethod            EQU        -11                    ; Switch to last-used input method in current keyscript 
  656. smKeyDisableKybdSwitch            EQU        -12                    ; Disable switching from the current keyboard 
  657. smKeySetDirLeftRight            EQU        -15                    ; Set default line dir to left-right, align left 
  658. smKeySetDirRightLeft            EQU        -16                    ; Set default line dir to right-left, align right 
  659. smKeyRoman                        EQU        -17                    ; Set keyscript to Roman. Does nothing if Roman-only system, unlike KeyScript(smRoman) which forces an update to current default Roman keyboard 
  660.  
  661.                                                             ; Bits in the smScriptFlags word 
  662.                                                             ;  (bits above 8 are non-static) 
  663. smsfIntellCP                    EQU        0                    ;Script has intelligent cut & paste
  664. smsfSingByte                    EQU        1                    ;Script has only single bytes
  665. smsfNatCase                        EQU        2                    ;Native chars have upper & lower case
  666. smsfContext                        EQU        3                    ;Script is contextual
  667. smsfNoForceFont                    EQU        4                    ;Script will not force characters
  668. smsfB0Digits                    EQU        5                    ;Script has alternate digits at B0-B9
  669. smsfAutoInit                    EQU        6                    ;Auto initialize the script
  670. smsfUnivExt                        EQU        7                    ;Script is handled by universal extension
  671. smsfSynchUnstyledTE                EQU        8                    ;Script synchronizes for unstyled TE
  672. smsfForms                        EQU        13                    ;Uses contextual forms for letters
  673. smsfLigatures                    EQU        14                    ;Uses contextual ligatures
  674. smsfReverse                        EQU        15                    ;Reverses native text, right-left
  675.                                                             ; Bits in the smGenFlags long. 
  676.                                                             ; First (high-order) byte is set from itlc flags byte. 
  677. smfShowIcon                        EQU        31                    ;Show icon even if only one script
  678. smfDualCaret                    EQU        30                    ;Use dual caret for mixed direction text
  679. smfNameTagEnab                    EQU        29                    ;Reserved for internal use
  680. smfUseAssocFontInfo                EQU        28                    ;Use the associated font info for FontMetrics calls <48>
  681.  
  682.                                                             ; Roman script constants 
  683.                                                             ; The following are here for backward compatibility, but should not be used. 
  684.                                                             ; This information should be obtained using GetScript. 
  685. romanSysFond                    EQU        $3FFF                ;system font id number
  686. romanAppFond                    EQU        3                    ;application font id number
  687. romanFlags                        EQU        $0007                ;roman settings
  688.                                                             ; Script Manager font equates. 
  689. smFondStart                        EQU        $4000                ;start from 16K
  690. smFondEnd                        EQU        $C000                ;past end of range at 48K
  691.                                                             ; Miscellaneous font equates. 
  692. smUprHalfCharSet                EQU        $80                    ;first char code in top half of std char set
  693.  
  694.                                                             ; Character Set Extensions 
  695. diaeresisUprY                    EQU        $D9
  696. fraction                        EQU        $DA
  697. intlCurrency                    EQU        $DB
  698. leftSingGuillemet                EQU        $DC
  699. rightSingGuillemet                EQU        $DD
  700. fiLigature                        EQU        $DE
  701. flLigature                        EQU        $DF
  702. dblDagger                        EQU        $E0
  703. centeredDot                        EQU        $E1
  704. baseSingQuote                    EQU        $E2
  705. baseDblQuote                    EQU        $E3
  706. perThousand                        EQU        $E4
  707. circumflexUprA                    EQU        $E5
  708. circumflexUprE                    EQU        $E6
  709. acuteUprA                        EQU        $E7
  710. diaeresisUprE                    EQU        $E8
  711. graveUprE                        EQU        $E9
  712. acuteUprI                        EQU        $EA
  713. circumflexUprI                    EQU        $EB
  714. diaeresisUprI                    EQU        $EC
  715. graveUprI                        EQU        $ED
  716. acuteUprO                        EQU        $EE
  717. circumflexUprO                    EQU        $EF
  718. appleLogo                        EQU        $F0
  719. graveUprO                        EQU        $F1
  720. acuteUprU                        EQU        $F2
  721. circumflexUprU                    EQU        $F3
  722. graveUprU                        EQU        $F4
  723. dotlessLwrI                        EQU        $F5
  724. circumflex                        EQU        $F6
  725. tilde                            EQU        $F7
  726. macron                            EQU        $F8
  727. breveMark                        EQU        $F9
  728. overDot                            EQU        $FA
  729. ringMark                        EQU        $FB
  730. cedilla                            EQU        $FC
  731. doubleAcute                        EQU        $FD
  732. ogonek                            EQU        $FE
  733. hachek                            EQU        $FF
  734.  
  735.                                                             ; ScriptTokenType values 
  736. tokenIntl                        EQU        4                    ;the itl resource number of the tokenizer
  737. tokenEmpty                        EQU        -1                    ;used internally as an empty flag
  738.  
  739. tokenUnknown                    EQU        0                    ;chars that do not match a defined token type
  740. tokenWhite                        EQU        1                    ;white space
  741. tokenLeftLit                    EQU        2                    ;literal begin
  742. tokenRightLit                    EQU        3                    ;literal end
  743. tokenAlpha                        EQU        4                    ;alphabetic
  744. tokenNumeric                    EQU        5                    ;numeric
  745. tokenNewLine                    EQU        6                    ;new line
  746. tokenLeftComment                EQU        7                    ;open comment
  747. tokenRightComment                EQU        8                    ;close comment
  748. tokenLiteral                    EQU        9                    ;literal
  749. tokenEscape                        EQU        10                    ;character escape (e.g. '\' in "\n", "\t")
  750. tokenAltNum                        EQU        11                    ;alternate number (e.g. $B0-B9 in Arabic,Hebrew)
  751. tokenRealNum                    EQU        12                    ;real number
  752. tokenAltReal                    EQU        13                    ;alternate real number
  753. tokenReserve1                    EQU        14                    ;reserved
  754. tokenReserve2                    EQU        15                    ;reserved
  755. tokenLeftParen                    EQU        16                    ;open parenthesis
  756. tokenRightParen                    EQU        17                    ;close parenthesis
  757. tokenLeftBracket                EQU        18                    ;open square bracket
  758. tokenRightBracket                EQU        19                    ;close square bracket
  759.  
  760. tokenLeftCurly                    EQU        20                    ;open curly bracket
  761. tokenRightCurly                    EQU        21                    ;close curly bracket
  762. tokenLeftEnclose                EQU        22                    ;open guillemet
  763. tokenRightEnclose                EQU        23                    ;close guillemet
  764. tokenPlus                        EQU        24
  765. tokenMinus                        EQU        25
  766. tokenAsterisk                    EQU        26                    ;times/multiply
  767. tokenDivide                        EQU        27
  768. tokenPlusMinus                    EQU        28                    ;plus or minus symbol
  769. tokenSlash                        EQU        29
  770. tokenBackSlash                    EQU        30
  771. tokenLess                        EQU        31                    ;less than symbol
  772. tokenGreat                        EQU        32                    ;greater than symbol
  773. tokenEqual                        EQU        33
  774. tokenLessEqual2                    EQU        34                    ;less than or equal, 2 characters (e.g. <=)
  775. tokenLessEqual1                    EQU        35                    ;less than or equal, 1 character
  776. tokenGreatEqual2                EQU        36                    ;greater than or equal, 2 characters (e.g. >=)
  777. tokenGreatEqual1                EQU        37                    ;greater than or equal, 1 character
  778. token2Equal                        EQU        38                    ;double equal (e.g. ==)
  779. tokenColonEqual                    EQU        39                    ;colon equal
  780.  
  781. tokenNotEqual                    EQU        40                    ;not equal, 1 character
  782. tokenLessGreat                    EQU        41                    ;less/greater, Pascal not equal (e.g. <>)
  783. tokenExclamEqual                EQU        42                    ;exclamation equal, C not equal (e.g. !=)
  784. tokenExclam                        EQU        43                    ;exclamation point
  785. tokenTilde                        EQU        44                    ;centered tilde
  786. tokenComma                        EQU        45
  787. tokenPeriod                        EQU        46
  788. tokenLeft2Quote                    EQU        47                    ;open double quote
  789. tokenRight2Quote                EQU        48                    ;close double quote
  790. tokenLeft1Quote                    EQU        49                    ;open single quote
  791. tokenRight1Quote                EQU        50                    ;close single quote
  792. token2Quote                        EQU        51                    ;double quote
  793. token1Quote                        EQU        52                    ;single quote
  794. tokenSemicolon                    EQU        53
  795. tokenPercent                    EQU        54
  796. tokenCaret                        EQU        55
  797. tokenUnderline                    EQU        56
  798. tokenAmpersand                    EQU        57
  799. tokenAtSign                        EQU        58
  800. tokenBar                        EQU        59                    ;vertical bar
  801.  
  802. tokenQuestion                    EQU        60
  803. tokenPi                            EQU        61                    ;lower-case pi
  804. tokenRoot                        EQU        62                    ;square root symbol
  805. tokenSigma                        EQU        63                    ;capital sigma
  806. tokenIntegral                    EQU        64                    ;integral sign
  807. tokenMicro                        EQU        65
  808. tokenCapPi                        EQU        66                    ;capital pi
  809. tokenInfinity                    EQU        67
  810. tokenColon                        EQU        68
  811. tokenHash                        EQU        69                    ;e.g. #
  812. tokenDollar                        EQU        70
  813. tokenNoBreakSpace                EQU        71                    ;non-breaking space
  814. tokenFraction                    EQU        72
  815. tokenIntlCurrency                EQU        73
  816. tokenLeftSingGuillemet            EQU        74
  817. tokenRightSingGuillemet            EQU        75
  818. tokenPerThousand                EQU        76
  819. tokenEllipsis                    EQU        77
  820. tokenCenterDot                    EQU        78
  821. tokenNil                        EQU        127
  822.  
  823. delimPad                        EQU        -2                    ; obsolete, misspelled token names kept for backward compatibility 
  824. tokenTilda                        EQU        44
  825. tokenCarat                        EQU        55
  826.  
  827.                                                             ; Table selectors for GetItlTable 
  828. smWordSelectTable                EQU        0                    ; get word select break table from 'itl2' 
  829. smWordWrapTable                    EQU        1                    ; get word wrap break table from 'itl2' 
  830. smNumberPartsTable                EQU        2                    ; get default number parts table from 'itl4' 
  831. smUnTokenTable                    EQU        3                    ; get unToken table from 'itl4' 
  832. smWhiteSpaceList                EQU        4                    ; get white space list from 'itl4' 
  833. iuWordSelectTable                EQU        0                    ; <obsolete>  get word select break table from 'itl2' 
  834. iuWordWrapTable                    EQU        1                    ; <obsolete>  get word wrap break table from 'itl2' 
  835. iuNumberPartsTable                EQU        2                    ; <obsolete>  get default number parts table from 'itl4' 
  836. iuUnTokenTable                    EQU        3                    ; <obsolete>  get unToken table from 'itl4' 
  837. iuWhiteSpaceList                EQU        4                    ; <obsolete>  get white space list from 'itl4' 
  838. ;  end of stuff moved from Packages.h 
  839.  
  840. tokenOK                            EQU        0                    ; TokenResults 
  841. tokenOverflow                    EQU        1                    ; TokenResults 
  842. stringOverflow                    EQU        2                    ; TokenResults 
  843. badDelim                        EQU        3                    ; TokenResults 
  844. badEnding                        EQU        4                    ; TokenResults 
  845. crash                            EQU        5                    ; TokenResults 
  846. ; typedef SInt8                         TokenResults
  847.  
  848. CharByteTable            RECORD 0
  849. elements                 ds.b    256
  850. sizeof                     EQU *                    ; size:   $100 (256)
  851.                         ENDR
  852.  
  853.  
  854. ;  "TokenType" was renamed to "ScriptTokenType" because of a name collision in QuickTime 3.0 on other OS's
  855. ; typedef short                         ScriptTokenType
  856.  
  857.     IF TARGET_OS_MAC THEN
  858. ; typedef ScriptTokenType                 TokenType
  859.  
  860.     ENDIF    ; TARGET_OS_MAC
  861. DelimType                RECORD 0
  862. elements                 ds.w    2
  863. sizeof                     EQU *                    ; size:   $4 (4)
  864.                         ENDR
  865.  
  866.  
  867. CommentType                RECORD 0
  868. elements                 ds.w    4
  869. sizeof                     EQU *                    ; size:   $8 (8)
  870.                         ENDR
  871.  
  872.  
  873. TokenRec                RECORD 0
  874. theToken                 ds.w    1                ; offset: $0 (0)
  875. position                 ds.l    1                ; offset: $2 (2)        ; pointer into original source
  876. length                     ds.l    1                ; offset: $6 (6)        ; length of text in original source
  877. stringPosition             ds.l    1                ; offset: $A (10)        ; Pascal/C string copy of identifier
  878. sizeof                     EQU *                    ; size:   $E (14)
  879.                         ENDR
  880. ; typedef struct TokenRec *                TokenRecPtr
  881.  
  882. TokenBlock                RECORD 0
  883. source                     ds.l    1                ; offset: $0 (0)        ; pointer to stream of characters
  884. sourceLength             ds.l    1                ; offset: $4 (4)        ; length of source stream
  885. tokenList                 ds.l    1                ; offset: $8 (8)        ; pointer to array of tokens
  886. tokenLength                 ds.l    1                ; offset: $C (12)        ; maximum length of TokenList
  887. tokenCount                 ds.l    1                ; offset: $10 (16)        ; number tokens generated by tokenizer
  888. stringList                 ds.l    1                ; offset: $14 (20)        ; pointer to stream of identifiers
  889. stringLength             ds.l    1                ; offset: $18 (24)        ; length of string list
  890. stringCount                 ds.l    1                ; offset: $1C (28)        ; number of bytes currently used
  891. doString                 ds.b    1                ; offset: $20 (32)        ; make strings & put into StringList
  892. doAppend                 ds.b    1                ; offset: $21 (33)        ; append to TokenList rather than replace
  893. doAlphanumeric             ds.b    1                ; offset: $22 (34)        ; identifiers may include numeric
  894. doNest                     ds.b    1                ; offset: $23 (35)        ; do comments nest?
  895. leftDelims                 ds.w    2                ; offset: $24 (36)
  896. rightDelims                 ds.w    2                ; offset: $28 (40)
  897. leftComment                 ds.w    4                ; offset: $2C (44)
  898. rightComment             ds.w    4                ; offset: $34 (52)
  899. escapeCode                 ds.w    1                ; offset: $3C (60)        ; escape symbol code
  900. decimalCode                 ds.w    1                ; offset: $3E (62)
  901. itlResource                 ds.l    1                ; offset: $40 (64)        ; handle to itl4 resource of current script
  902. reserved                 ds.l    8                ; offset: $44 (68)        ; must be zero!
  903. sizeof                     EQU *                    ; size:   $64 (100)
  904.                         ENDR
  905. ; typedef struct TokenBlock *            TokenBlockPtr
  906.  
  907. ;
  908. ; pascal short GetSysDirection(void)
  909. ;
  910.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  911.         Macro
  912.         _GetSysDirection      &dest=(sp)
  913.             move.w            $0BAC,&dest
  914.         EndM
  915.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  916.         IMPORT_CFM_FUNCTION GetSysDirection
  917.     ENDIF
  918.  
  919. ;
  920. ; pascal void SetSysDirection(short value)
  921. ;
  922.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  923.         Macro
  924.         _SetSysDirection      &src=(sp)+
  925.             move.w            &src,$0BAC
  926.         EndM
  927.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  928.         IMPORT_CFM_FUNCTION SetSysDirection
  929.     ENDIF
  930.  
  931. ;
  932. ; pascal short FontScript(void )
  933. ;
  934.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  935.         Macro
  936.         _FontScript
  937.             move.l              #$82000000,-(sp)
  938.             dc.w                $A8B5
  939.         EndM
  940.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  941.         IMPORT_CFM_FUNCTION FontScript
  942.     ENDIF
  943.  
  944. ;
  945. ; pascal short IntlScript(void )
  946. ;
  947.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  948.         Macro
  949.         _IntlScript
  950.             move.l              #$82000002,-(sp)
  951.             dc.w                $A8B5
  952.         EndM
  953.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  954.         IMPORT_CFM_FUNCTION IntlScript
  955.     ENDIF
  956.  
  957. ;
  958. ; pascal void KeyScript(short code)
  959. ;
  960.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  961.         Macro
  962.         _KeyScript
  963.             move.l              #$80020004,-(sp)
  964.             dc.w                $A8B5
  965.         EndM
  966.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  967.         IMPORT_CFM_FUNCTION KeyScript
  968.     ENDIF
  969.  
  970. ;
  971. ; pascal Boolean IsCmdChar(const EventRecord *event, short test)
  972. ;
  973.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  974.         Macro
  975.         _IsCmdChar
  976.             move.l              #$8206FFD0,-(sp)
  977.             dc.w                $A8B5
  978.         EndM
  979.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  980.         IMPORT_CFM_FUNCTION IsCmdChar
  981.     ENDIF
  982.  
  983. ;
  984. ; pascal short FontToScript(short fontNumber)
  985. ;
  986.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  987.         Macro
  988.         _FontToScript
  989.             move.l              #$82020006,-(sp)
  990.             dc.w                $A8B5
  991.         EndM
  992.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  993.         IMPORT_CFM_FUNCTION FontToScript
  994.     ENDIF
  995.  
  996. ;
  997. ; pascal long GetScriptManagerVariable(short selector)
  998. ;
  999.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1000.         Macro
  1001.         _GetScriptManagerVariable
  1002.             move.l              #$84020008,-(sp)
  1003.             dc.w                $A8B5
  1004.         EndM
  1005.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1006.         IMPORT_CFM_FUNCTION GetScriptManagerVariable
  1007.     ENDIF
  1008.  
  1009. ;
  1010. ; pascal OSErr SetScriptManagerVariable(short selector, long param)
  1011. ;
  1012.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1013.         Macro
  1014.         _SetScriptManagerVariable
  1015.             move.l              #$8206000A,-(sp)
  1016.             dc.w                $A8B5
  1017.         EndM
  1018.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1019.         IMPORT_CFM_FUNCTION SetScriptManagerVariable
  1020.     ENDIF
  1021.  
  1022. ;
  1023. ; pascal long GetScriptVariable(short script, short selector)
  1024. ;
  1025.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1026.         Macro
  1027.         _GetScriptVariable
  1028.             move.l              #$8404000C,-(sp)
  1029.             dc.w                $A8B5
  1030.         EndM
  1031.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1032.         IMPORT_CFM_FUNCTION GetScriptVariable
  1033.     ENDIF
  1034.  
  1035. ;
  1036. ; pascal OSErr SetScriptVariable(short script, short selector, long param)
  1037. ;
  1038.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1039.         Macro
  1040.         _SetScriptVariable
  1041.             move.l              #$8208000E,-(sp)
  1042.             dc.w                $A8B5
  1043.         EndM
  1044.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1045.         IMPORT_CFM_FUNCTION SetScriptVariable
  1046.     ENDIF
  1047.  
  1048. ;
  1049. ; pascal short CharacterByteType(Ptr textBuf, short textOffset, ScriptCode script)
  1050. ;
  1051.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1052.         Macro
  1053.         _CharacterByteType
  1054.             move.l              #$C2060010,-(sp)
  1055.             dc.w                $A8B5
  1056.         EndM
  1057.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1058.         IMPORT_CFM_FUNCTION CharacterByteType
  1059.     ENDIF
  1060.  
  1061. ;
  1062. ; pascal short CharacterType(Ptr textBuf, short textOffset, ScriptCode script)
  1063. ;
  1064.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1065.         Macro
  1066.         _CharacterType
  1067.             move.l              #$C2060012,-(sp)
  1068.             dc.w                $A8B5
  1069.         EndM
  1070.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1071.         IMPORT_CFM_FUNCTION CharacterType
  1072.     ENDIF
  1073.  
  1074. ;
  1075. ; pascal OSErr TransliterateText(Handle srcHandle, Handle dstHandle, short target, long srcMask, ScriptCode script)
  1076. ;
  1077.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1078.         Macro
  1079.         _TransliterateText
  1080.             move.l              #$C20E0018,-(sp)
  1081.             dc.w                $A8B5
  1082.         EndM
  1083.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1084.         IMPORT_CFM_FUNCTION TransliterateText
  1085.     ENDIF
  1086.  
  1087. ;
  1088. ; pascal Boolean FillParseTable(CharByteTable table, ScriptCode script)
  1089. ;
  1090.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1091.         Macro
  1092.         _FillParseTable
  1093.             move.l              #$C2040022,-(sp)
  1094.             dc.w                $A8B5
  1095.         EndM
  1096.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1097.         IMPORT_CFM_FUNCTION FillParseTable
  1098.     ENDIF
  1099.  
  1100. ;
  1101. ; pascal Handle GetIntlResource(short theID)
  1102. ;
  1103.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1104.         Macro
  1105.         _GetIntlResource
  1106.             move.w              #$0006,-(sp)
  1107.             dc.w                $A9ED
  1108.         EndM
  1109.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1110.         IMPORT_CFM_FUNCTION GetIntlResource
  1111.     ENDIF
  1112.  
  1113. ;
  1114. ; pascal void ClearIntlResourceCache(void )
  1115. ;
  1116.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1117.         Macro
  1118.         _ClearIntlResourceCache
  1119.             move.w              #$0018,-(sp)
  1120.             dc.w                $A9ED
  1121.         EndM
  1122.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1123.         IMPORT_CFM_FUNCTION ClearIntlResourceCache
  1124.     ENDIF
  1125.  
  1126. ;
  1127. ; pascal void GetIntlResourceTable(ScriptCode script, short tableCode, Handle *itlHandle, long *offset, long *length)
  1128. ;
  1129.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1130.         Macro
  1131.         _GetIntlResourceTable
  1132.             move.w              #$0024,-(sp)
  1133.             dc.w                $A9ED
  1134.         EndM
  1135.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1136.         IMPORT_CFM_FUNCTION GetIntlResourceTable
  1137.     ENDIF
  1138.  
  1139. ;
  1140. ; pascal UniversalProcPtr GetScriptUtilityAddress(short selector, Boolean Before, ScriptCode script)
  1141. ;
  1142.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1143.         Macro
  1144.         _GetScriptUtilityAddress
  1145.             move.l              #$C4040038,-(sp)
  1146.             dc.w                $A8B5
  1147.         EndM
  1148.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1149.         IMPORT_CFM_FUNCTION GetScriptUtilityAddress
  1150.     ENDIF
  1151.  
  1152. ;
  1153. ; pascal void SetScriptUtilityAddress(short selector, Boolean Before, UniversalProcPtr routineAddr, ScriptCode script)
  1154. ;
  1155.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1156.         Macro
  1157.         _SetScriptUtilityAddress
  1158.             move.l              #$C008003A,-(sp)
  1159.             dc.w                $A8B5
  1160.         EndM
  1161.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1162.         IMPORT_CFM_FUNCTION SetScriptUtilityAddress
  1163.     ENDIF
  1164.  
  1165. ;
  1166. ; pascal UniversalProcPtr GetScriptQDPatchAddress(short trapNum, Boolean Before, Boolean forPrinting, ScriptCode script)
  1167. ;
  1168.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1169.         Macro
  1170.         _GetScriptQDPatchAddress
  1171.             move.l              #$C406003C,-(sp)
  1172.             dc.w                $A8B5
  1173.         EndM
  1174.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1175.         IMPORT_CFM_FUNCTION GetScriptQDPatchAddress
  1176.     ENDIF
  1177.  
  1178. ;
  1179. ; pascal void SetScriptQDPatchAddress(short trapNum, Boolean Before, Boolean forPrinting, UniversalProcPtr routineAddr, ScriptCode script)
  1180. ;
  1181.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1182.         Macro
  1183.         _SetScriptQDPatchAddress
  1184.             move.l              #$C00A003E,-(sp)
  1185.             dc.w                $A8B5
  1186.         EndM
  1187.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1188.         IMPORT_CFM_FUNCTION SetScriptQDPatchAddress
  1189.     ENDIF
  1190.  
  1191. ;
  1192. ; pascal void SetIntlResource(short refNum, short theID, Handle intlHandle)
  1193. ;
  1194.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1195.         Macro
  1196.         _SetIntlResource
  1197.             move.w              #$0008,-(sp)
  1198.             dc.w                $A9ED
  1199.         EndM
  1200.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1201.         IMPORT_CFM_FUNCTION SetIntlResource
  1202.     ENDIF
  1203.  
  1204. ;
  1205. ; pascal short CharByte(Ptr textBuf, short textOffset)
  1206. ;
  1207.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1208.         Macro
  1209.         _CharByte
  1210.             move.l              #$82060010,-(sp)
  1211.             dc.w                $A8B5
  1212.         EndM
  1213.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1214.         IMPORT_CFM_FUNCTION CharByte
  1215.     ENDIF
  1216.  
  1217. ;
  1218. ; pascal short CharType(Ptr textBuf, short textOffset)
  1219. ;
  1220.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1221.         Macro
  1222.         _CharType
  1223.             move.l              #$82060012,-(sp)
  1224.             dc.w                $A8B5
  1225.         EndM
  1226.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1227.         IMPORT_CFM_FUNCTION CharType
  1228.     ENDIF
  1229.  
  1230. ;
  1231. ; pascal OSErr Transliterate(Handle srcHandle, Handle dstHandle, short target, long srcMask)
  1232. ;
  1233.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1234.         Macro
  1235.         _Transliterate
  1236.             move.l              #$820E0018,-(sp)
  1237.             dc.w                $A8B5
  1238.         EndM
  1239.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1240.         IMPORT_CFM_FUNCTION Transliterate
  1241.     ENDIF
  1242.  
  1243. ;
  1244. ; pascal Boolean ParseTable(CharByteTable table)
  1245. ;
  1246.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1247.         Macro
  1248.         _ParseTable
  1249.             move.l              #$82040022,-(sp)
  1250.             dc.w                $A8B5
  1251.         EndM
  1252.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1253.         IMPORT_CFM_FUNCTION ParseTable
  1254.     ENDIF
  1255.  
  1256. ;
  1257. ; pascal TokenResults IntlTokenize(TokenBlockPtr tokenParam)
  1258. ;
  1259.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1260.         Macro
  1261.         _IntlTokenize
  1262.             move.l              #$8204FFFA,-(sp)
  1263.             dc.w                $A8B5
  1264.         EndM
  1265.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1266.         IMPORT_CFM_FUNCTION IntlTokenize
  1267.     ENDIF
  1268.  
  1269.     IF OLDROUTINENAMES THEN
  1270.     ENDIF    ; OLDROUTINENAMES
  1271.  
  1272.  
  1273.     ENDIF ; __SCRIPT__ 
  1274.  
  1275.